package com.leenmvc.core.exception;

public class FileException extends RuntimeException {

    private String message;

    private Exception e;

    private boolean show = false;

    public FileException(String message, Exception e) {
        this.show = true;
        this.message = message;
        this.e = e;
    };

    public FileException(Exception e) {
        this.e = e;
    };

    public FileException(Exception e, boolean show) {
        this.e = e;
        this.show = show;
    };

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return message;
    }

    public Exception getE() {
        return e;
    }

    public void setE(Exception e) {
        this.e = e;
    }
}
